#include <stdio.h>
#include <stdlib.h>
#include "tokenizer.h"
#include "list.h"



int main(int argc, char** argv)
{
	struct list_t* tokens;

	if(argc < 2) {
		printf("Usage: %s filename\n", argv[0]);
		return EXIT_FAILURE;
	}
	if(!(tokens = tokenize(argv[1]))) {
		printf("tokenize() error\n");
		return EXIT_FAILURE;
	}
	token_list_print(tokens);
	token_list_free(&tokens);
	return EXIT_SUCCESS;
}

